# frozen_string_literal: true

# This code is part of Karafka Pro, a commercial component not licensed under LGPL.
# See LICENSE for details.

module Karafka
  module Pro
    module Routing
      module Features
        class Pausing < Base
          # Config for pausing feature
          Config = Struct.new(
            :active,
            :timeout,
            :max_timeout,
            :with_exponential_backoff,
            keyword_init: true
          ) do
            alias_method :active?, :active
            alias_method :with_exponential_backoff?, :with_exponential_backoff
          end
        end
      end
    end
  end
end
